package com.lzl.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzl.mall.order.entity.R;
import com.lzl.mall.order.entity.UserVO;
import com.lzl.mall.order.entity.Wallet;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * 订单项信息
 *
 * @author dpb
 * @email dengpbs@163.com
 * @date 2021-11-24 19:48:00
 */
public interface WalletService extends IService<Wallet> {
    /**
     * @description 1.  查询用户钱包余额
     * @createTime 2023/2/27 13:13
     * @param
     * @return com.lzl.mall.order.entity.R
     */
    public Wallet query(@Param("username") String user);

    /**
     * @description 2. 用户消费100元的接口
     * @createTime 2023/2/27 13:14
     * @param
     * @return com.lzl.mall.order.entity.R
     */
    public R consume(@RequestBody UserVO userVO);

    /**
     * @description 3. 用户退款20元接口
     * @createTime 2023/2/27 13:14
     * @param
     * @return com.lzl.mall.order.entity.R
     */
    public R refund(@RequestBody UserVO userVO);


}

